package com.dykj.fireFighting.server.socialUnit.buildmanger.service.impl;

import com.dykj.fireFighting.api.socialUnit.buildmanger.entity.Floor;
import com.dykj.fireFighting.api.socialUnit.buildmanger.service.IFloorService;
import com.dykj.fireFighting.common.core.service.impl.BaseServiceImpl;
import com.dykj.fireFighting.server.socialUnit.buildmanger.mapper.FloorMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;



import java.util.List;
import java.util.Map;

/**
 * 建筑管理-楼层
 *
 * @Author aixiaolan
 * @Date  2021-06-23 09:44:33
 */
@Slf4j
@DubboService
@Transactional(rollbackFor = Exception.class)
public class FloorServiceImpl extends BaseServiceImpl<FloorMapper, Floor> implements IFloorService {

    @Override
    public List<Floor>getFloorList(String unitId){
        return baseMapper.getFloorList(unitId);
    }

    @Override
    public List<Floor> getFloorListByBuildingId(String buildingId) {
        return baseMapper.getFloorListByBuildingId(buildingId);
    }

}
